package zara


class CleanLogJob {
    def timeout = 24*60*60*1000l // execute job once in 5 seconds

    def execute() {
        def ips = Ip.withCriteria {
            between("lastTime",new Date().minus(5),new Date())
        }
        ips.each{        
            it.delete(flush: true)
        }
    }
}
